<?php
/*********************/
/*                   */
/*  后台会员控制       */
/*   BY voiet        */
/*   2009-9-15      */
/*                   */
/*********************/

class cct_member extends ctl_member
{
	
	
	function modifypoint( )
	{
			$this->begin( "index.php?ctl=member/member&act=detail&p[0]=".$_POST['member_id'] );
			if(empty($_POST['describe'])){
			
				$this->end( false, __( "请输入理由" ) );
			}
			if ( $_POST['modify_point'] )
			{
					if ( 0 < $_POST['member_id'] )
					{
							$oMemberPoint = $this->system->loadmodel( "trading/memberPoint" );
							$this->end( $oMemberPoint->adminchgpoint( $_POST['member_id'], $_POST['modify_point'], "operator_adjust",$_POST['describe'], $this->op->opid,$this->op->loginName ), __( "修改成功！" ) );
					}
					else
					{
							$this->end( false, __( "会员ID参数丢失" ) );
					}
			}
			else
			{
					$this->end( false, __( "输入积分无效" ) );
			}
		}
	

}

?>